package view;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.io.PrintWriter;

/**
 * @program: foodApp
 * @description: This is a customer menu
 * @author: PanKer
 * @create: 2021-11-25 10:40
 */

@WebServlet("/customerMenu")
public class customerMenu extends HttpServlet {
    private static final long serialVersionUID = 8390957141392971550L;

    @Override
    protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
        resp.setContentType("text/html; charset=utf-8");
        PrintWriter writer = resp.getWriter();

        writer.println(
                " <!DOCTYPE html > \n " +
                        " <html lang = 'en' > \n " +
                        "     <head > \n " +
                        "         <meta charset = 'UTF-8' > \n " +
                        "         <meta http -equiv = 'X-UA-Compatible' content = 'IE=edge' > \n " +
                        "         <meta name = 'viewport' content = 'width=device-width, initial-scale=1.0' > \n " +
                        "         <link rel = 'stylesheet' href = 'https://cdn.staticfile.org/twitter-bootstrap/4.3.1/css/bootstrap.min.css' > \n " +
                        "         <script src = 'https://cdn.staticfile.org/jquery/3.2.1/jquery.min.js' ></script > \n " +
                        "         <script src = 'https://cdn.staticfile.org/popper.js/1.15.0/umd/popper.min.js' ></script > \n " +
                        "         <script src = 'https://cdn.staticfile.org/twitter-bootstrap/4.3.1/js/bootstrap.min.js' ></script > \n " +
                        "         <title > CustomerMenu </title > \n " +
                        "         <link rel = 'shortcut icon' href = '../img/Icon.ico' type = 'image/x-icon' > \n " +
                        "     </head > \n " +
                        " <body > \n " +
                        "     <h1 > 这里是用户菜单页面 </h1 > \n " +
                        " </body > \n " +
                        " </html > \n "
        );
    }
}
